<extend name="Public/layout"/>
<block name="body">
    <div class="sub_banner" style="background:url(__IMG__/index_06.png)"></div>
    <div class="container1200"  style="margin-top:70px;">
        <div class="title aos-init aos-animate" data-aos="fade-up" data-aos-anchor-placement="top-bottom" data-aos-delay="50">
            <h3>{$category.title}</h3>
            <span>{$category.description}</span>
        </div>
        <include file="Public/nav"/>
        <div class="sub_news aos-animate" data-aos="fade-up" data-aos-anchor-placement="top-bottom" data-aos-delay="50">
            <ul>
                <article:list name="info" category="$category['id']" row="C('ROWS')">
                    <li >
                        <a href="{:U('Article/detail',['id'=>$info['id']])}">
                            <div class="sub_news_img">
                                <img src="{:get_cover($info['cover_id'],'path')}">
                            </div>
                            <div class="sub_news_p">
                                <h4>{$info.title}</h4>
                                <span>{$info.update_time|date='Y-m-d',###}</span>
                                <p>{$info.description}</p>
                            </div>
                        </a>
                    </li>
                </article:list>
            </ul>
            <article:page cate="$category['id']" listrow="C('ROWS')">
                $__PAGE__->setConfig('prev','上一页');
                $__PAGE__->setConfig('next','下一页');
            </article:page>
        </div>
    </div>
</block>